package study.alex.resumedb.gae.model;

import com.vaadin.ui.UI;
import study.alex.resumedb.gae.ResumeDBMaintUI;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Author: Alexey Kuznetsov
 * Date: 14.03.14
 * Time: 11:17
 * SVN $Id$
 */
public enum EventType implements Serializable {

    DONE("event.done"),
    CALL("event.call"),
    INTERVIEW("event.interview"),
    UNKNOWN("event.unknown");

    EventType(String displayString) {
        this.display = displayString;
    }
    @Override
    public String toString() {
        return ((ResumeDBMaintUI) UI.getCurrent()).getBundle().getString(this.display);
    }

    private String display;
}
